<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <rich:panel>
        <f:facet name="header">Bayi gps Details</f:facet>

        <s:decorate id="id" template="layout/display.xhtml">
            <ui:define name="label">Id</ui:define>
            <h:outputText value="#{bayiGpsHome.instance.id}">
                <f:convertNumber/>
            </h:outputText>
        </s:decorate>

        <s:decorate id="latitude" template="layout/display.xhtml">
            <ui:define name="label">Latitude</ui:define>
            <h:outputText value="#{bayiGpsHome.instance.latitude}"/>
        </s:decorate>

        <s:decorate id="longitude" template="layout/display.xhtml">
            <ui:define name="label">Longitude</ui:define>
            <h:outputText value="#{bayiGpsHome.instance.longitude}"/>
        </s:decorate>

        <s:decorate id="type" template="layout/display.xhtml">
            <ui:define name="label">Type</ui:define>
            <h:outputText value="#{bayiGpsHome.instance.type}"/>
        </s:decorate>

        <div style="clear:both"/>

    </rich:panel>

    <div class="actionButtons">

        <s:button view="/BayiGpsEdit.xhtml"
                    id="edit"
                 value="Edit"/>

        <s:button view="/#{empty bayiGpsFrom ? 'BayiGpsList' : bayiGpsFrom}.xhtml"
                    id="done"
                 value="Done"/>

    </div>

    <rich:tabPanel switchType="ajax">

    <rich:tab>
        <f:facet name="label">
            <h:panelGroup><h:graphicImage value="/img/manytoone.gif" style="vertical-align: middle; padding-right: 4px;"/>Bayi</h:panelGroup>
        </f:facet>
    <div class="association" id="bayiParent">

        <h:outputText value="There is no bayi associated with this bayiGps."
                   rendered="#{bayiGpsHome.instance.bayi == null}"/>

        <rich:dataTable var="_bayi"
                   value="#{bayiGpsHome.instance.bayi}"
                rendered="#{bayiGpsHome.instance.bayi != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="bayiTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_bayi.id}">
                    <f:convertNumber/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Ilce id</f:facet>
                <h:outputText value="#{_bayi.ilce.id}">
                    <f:convertNumber/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Semtler id</f:facet>
                <h:outputText value="#{_bayi.semtler.id}">
                    <f:convertNumber/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Iller id</f:facet>
                <h:outputText value="#{_bayi.iller.id}">
                    <f:convertNumber/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Unvan</f:facet>
                <h:outputText value="#{_bayi.unvan}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Bayi kodu</f:facet>
                <h:outputText value="#{_bayi.bayiKodu}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Musterideki kodu</f:facet>
                <h:outputText value="#{_bayi.musteridekiKodu}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Bina adi</f:facet>
                <h:outputText value="#{_bayi.binaAdi}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Bina no</f:facet>
                <h:outputText value="#{_bayi.binaNo}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Cadde</f:facet>
                <h:outputText value="#{_bayi.cadde}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Daire no</f:facet>
                <h:outputText value="#{_bayi.daireNo}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Iptal</f:facet>
                <h:outputText value="#{_bayi.iptal}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Kat no</f:facet>
                <h:outputText value="#{_bayi.katNo}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Posta kodu</f:facet>
                <h:outputText value="#{_bayi.postaKodu}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Sokak</f:facet>
                <h:outputText value="#{_bayi.sokak}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Ticari unvan</f:facet>
                <h:outputText value="#{_bayi.ticariUnvan}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Ilce eski adi</f:facet>
                <h:outputText value="#{_bayi.ilceEskiAdi}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Semt adi eski</f:facet>
                <h:outputText value="#{_bayi.semtAdiEski}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Adres eski</f:facet>
                <h:outputText value="#{_bayi.adresEski}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Bayi tipi eski</f:facet>
                <h:outputText value="#{_bayi.bayiTipiEski}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Kullanici kodu eski</f:facet>
                <h:outputText value="#{_bayi.kullaniciKoduEski}"/>
            </h:column>
            <h:column styleClass="action">
                <f:facet name="header">Action</f:facet>
                <s:link id="viewbayi"
                     value="View"
                      view="/Bayi.xhtml">
                    <f:param name="bayiId"
                           value="#{_bayi.id}"/>
                </s:link>
            </h:column>
        </rich:dataTable>

    </div>
    </rich:tab>
</rich:tabPanel>
</ui:define>

</ui:composition>
